﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.models {
    import net.wooga.pets.controllers.data.*;
    import __AS3__.vec.*;
    import org.robotlegs.mvcs.*;
    import com.adobe.utils.*;

    public class PatientPoolModel extends Actor {

        private var _patientPool:Vector.<PatientPoolVO>;

        public function init():void{
            this._patientPool = new Vector.<PatientPoolVO>();
        }
        public function add(_arg1:PatientPoolVO):void{
            this._patientPool.push(_arg1);
        }
        public function get pool():Vector.<PatientPoolVO>{
            return (this._patientPool);
        }
        public function getAt(_arg1:int):PatientPoolVO{
            return (this._patientPool[_arg1]);
        }
        public function get patientTypes():Array{
            var _local2:PatientPoolVO;
            var _local3:String;
            var _local1:Array = [];
            for each (_local2 in this._patientPool) {
                _local3 = ((_local2.petType + "_") + _local2.diseaseName);
                if (!ArrayUtil.arrayContainsValue(_local1, _local3)){
                    _local1.push(_local3);
                };
            };
            return (_local1);
        }

    }
}//package net.wooga.pets.models 
